package com.zusmart.core.bean.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自动注入注解,可放置在Field,Method,Parameter,Constructor上
 * 
 * @author Administrator
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER ,ElementType.CONSTRUCTOR})
public @interface Autowired {

	public String value() default "";// 指定注入的Bean名称,默认为空,则按类型搜索,如果类型搜索存在多个,则抛出异常

}